package com.joysuch.wwyt.risk.controller;

import com.alibaba.fastjson.JSON;
import com.joysuch.wwyt.risk.entity.RiskDistrict;
import com.joysuch.wwyt.risk.repository.RiskDistrictDao;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Lazy;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.List;

/**
 * @Author ZhaoQiuWei
 * @Date 2022/4/20 18:01
 */
@Slf4j
@Component
public class RiskDynamicCalculation {
//    @Resource
//    @Lazy
//    private RiskDistrictDao riskDistrictDao;
//
//    @PostConstruct
//    @Order(20)
//    public void Calculat() {
//        log.info("动态风险预处理-------start");
//        List<RiskDistrict> all = riskDistrictDao.findAll();
//        System.out.println(JSON.toJSONString(all));
//        log.info("动态风险预处理-------end");
//    }
}
